package example.demo.route.handler;

import org.apache.ibatis.executor.statement.StatementHandler;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.plugin.Invocation;

import java.lang.reflect.Field;

/**
 * 策略模式
 */
public interface SqlHandlerInterface {

    String getTableName(String sql);

    boolean isSupport(String sql);

    Object handler(Integer[] integers,String sql, Invocation invocation, BoundSql boundSql, Field sqlField, StatementHandler statementHandler) throws Exception;
}
